package com.sicau.socialpracticesystem.entity.param.pointexchange;

import com.sun.istack.NotNull;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.Min;

/**
 * <p>
 * 兑换奖品参数
 * </p>
 *
 * @author sxt && ttxxi
 * @since 2021-04-27
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "兑换奖品参数", description = "兑换奖品参数")
public class PointsExchangeAddParam {

    @NotNull
    @ApiModelProperty(value = "奖品对应id")
    private Integer prizeId;

    @Min(1)
    @ApiModelProperty(value = "兑换数量，默认为1")
    private Integer number = 1;

}
